import tkinter as tk
from tkinter import font

# 配置中文字体
def configure_fonts():
    default_font = font.nametofont("TkDefaultFont")
    text_font = font.nametofont("TkTextFont")
    fixed_font = font.nametofont("TkFixedFont")
    
    chinese_fonts = ["Microsoft YaHei", "SimHei", "Arial Unicode MS"]
    for f in [default_font, text_font, fixed_font]:
        f.config(family=chinese_fonts[0], 
                size=10 if f != fixed_font else 12,
                weight="normal")